﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Frogs.Stability.CircuitBreaker.Exceptions
{
    /// <summary>
    /// Exception thrown when attempting to execute on an open circuit breaker
    /// </summary>
    public class OpenCircuitBreakerException : Exception
    {
        /// <summary>
        /// Initializes a new instance of the Frogs.Stability.CircuitBreaker.Exceptions.OpenCircuitBreakerException
        /// </summary>
        public OpenCircuitBreakerException()
            : base()
        {
        }

        /// <summary>
        /// Initializes a new instance of the Frogs.Stability.CircuitBreaker.Exceptions.OpenCircuitBreakerException with a specified error message
        /// </summary>
        /// <param name="message"></param>
        public OpenCircuitBreakerException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Initializes a new instance of the Frogs.Stability.CircuitBreaker.Exceptions.OpenCircuitBreakerException with a specified error message
        /// and a reference to the inner exception that is the cause of this exception.
        /// </summary>
        /// <param name="message"></param>
        /// <param name="innerException"></param>
        public OpenCircuitBreakerException(string message, Exception innerException)
            : base(message, innerException)
        {
        }

        /// <summary>
        /// Initializes a new instance of the Frogs.Stability.CircuitBreaker.Exceptions.OpenCircuitBreakerException with serialized data.
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        public OpenCircuitBreakerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
            : base(info, context)
        {
        }
    }
}
